{% extends "master.html" %}
{% block subtitle %} - 系统设置 - 权限管理{% endblock %}

{% block main %}
<div class="container">
    <div class="row">
        <ol class="breadcrumb">
          <li><a href="{{url_for('bpSys.view')}}">系统设置</a></li>
          <li class="active">权限管理</li>
        </ol>
    </div>
    <div class="row">
        {{mymacros.render_search_form(form,3)}}
    </div>
    <div class="row">
        <div class="btn-toolbar pull-right">
            <div class="btn-group"><button type="button" class="btn btn-default" onclick="$('form').submit()">{{BTN_SEARCH}}</button></div>
            <div class="btn-group"><a href="{{url_for('.view',action='obj_add',t='PRM')}}" class="btn btn-primary">创建权限</a></div>
        </div>
    </div>
    <div class="row">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th>权限名称</th>
                    <th>创建人</th>
                    <th>创建时间</th>
                </tr>
            </thead>
            <tbody>
                {% for r in result %}
                    <tr>
                        <td><a href="{{url_for('.view',action='obj_update',t='PRM',id=r.id)}}">{{r.name}}</a></td>
                        <td>{{r.createBy|f}}</td>
                        <td>{{r.createTime|ft}}</td>
                    </tr>
                {% endfor %}
            </tbody>                
        </table>
    </div>
        
    
</div>
{% endblock %}